package com.lsy.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FlowrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FlowrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFlowrecordidIsNull() {
            addCriterion("flowrecordId is null");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidIsNotNull() {
            addCriterion("flowrecordId is not null");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidEqualTo(Integer value) {
            addCriterion("flowrecordId =", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidNotEqualTo(Integer value) {
            addCriterion("flowrecordId <>", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidGreaterThan(Integer value) {
            addCriterion("flowrecordId >", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidGreaterThanOrEqualTo(Integer value) {
            addCriterion("flowrecordId >=", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidLessThan(Integer value) {
            addCriterion("flowrecordId <", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidLessThanOrEqualTo(Integer value) {
            addCriterion("flowrecordId <=", value, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidIn(List<Integer> values) {
            addCriterion("flowrecordId in", values, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidNotIn(List<Integer> values) {
            addCriterion("flowrecordId not in", values, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidBetween(Integer value1, Integer value2) {
            addCriterion("flowrecordId between", value1, value2, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andFlowrecordidNotBetween(Integer value1, Integer value2) {
            addCriterion("flowrecordId not between", value1, value2, "flowrecordid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andFtypedealIsNull() {
            addCriterion("fTypeDeal is null");
            return (Criteria) this;
        }

        public Criteria andFtypedealIsNotNull() {
            addCriterion("fTypeDeal is not null");
            return (Criteria) this;
        }

        public Criteria andFtypedealEqualTo(String value) {
            addCriterion("fTypeDeal =", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealNotEqualTo(String value) {
            addCriterion("fTypeDeal <>", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealGreaterThan(String value) {
            addCriterion("fTypeDeal >", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealGreaterThanOrEqualTo(String value) {
            addCriterion("fTypeDeal >=", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealLessThan(String value) {
            addCriterion("fTypeDeal <", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealLessThanOrEqualTo(String value) {
            addCriterion("fTypeDeal <=", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealLike(String value) {
            addCriterion("fTypeDeal like", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealNotLike(String value) {
            addCriterion("fTypeDeal not like", value, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealIn(List<String> values) {
            addCriterion("fTypeDeal in", values, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealNotIn(List<String> values) {
            addCriterion("fTypeDeal not in", values, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealBetween(String value1, String value2) {
            addCriterion("fTypeDeal between", value1, value2, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtypedealNotBetween(String value1, String value2) {
            addCriterion("fTypeDeal not between", value1, value2, "ftypedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealIsNull() {
            addCriterion("fTimeDeal is null");
            return (Criteria) this;
        }

        public Criteria andFtimedealIsNotNull() {
            addCriterion("fTimeDeal is not null");
            return (Criteria) this;
        }

        public Criteria andFtimedealEqualTo(Date value) {
            addCriterion("fTimeDeal =", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealNotEqualTo(Date value) {
            addCriterion("fTimeDeal <>", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealGreaterThan(Date value) {
            addCriterion("fTimeDeal >", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealGreaterThanOrEqualTo(Date value) {
            addCriterion("fTimeDeal >=", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealLessThan(Date value) {
            addCriterion("fTimeDeal <", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealLessThanOrEqualTo(Date value) {
            addCriterion("fTimeDeal <=", value, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealIn(List<Date> values) {
            addCriterion("fTimeDeal in", values, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealNotIn(List<Date> values) {
            addCriterion("fTimeDeal not in", values, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealBetween(Date value1, Date value2) {
            addCriterion("fTimeDeal between", value1, value2, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFtimedealNotBetween(Date value1, Date value2) {
            addCriterion("fTimeDeal not between", value1, value2, "ftimedeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealIsNull() {
            addCriterion("fMoneyDeal is null");
            return (Criteria) this;
        }

        public Criteria andFmoneydealIsNotNull() {
            addCriterion("fMoneyDeal is not null");
            return (Criteria) this;
        }

        public Criteria andFmoneydealEqualTo(Integer value) {
            addCriterion("fMoneyDeal =", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealNotEqualTo(Integer value) {
            addCriterion("fMoneyDeal <>", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealGreaterThan(Integer value) {
            addCriterion("fMoneyDeal >", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealGreaterThanOrEqualTo(Integer value) {
            addCriterion("fMoneyDeal >=", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealLessThan(Integer value) {
            addCriterion("fMoneyDeal <", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealLessThanOrEqualTo(Integer value) {
            addCriterion("fMoneyDeal <=", value, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealIn(List<Integer> values) {
            addCriterion("fMoneyDeal in", values, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealNotIn(List<Integer> values) {
            addCriterion("fMoneyDeal not in", values, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealBetween(Integer value1, Integer value2) {
            addCriterion("fMoneyDeal between", value1, value2, "fmoneydeal");
            return (Criteria) this;
        }

        public Criteria andFmoneydealNotBetween(Integer value1, Integer value2) {
            addCriterion("fMoneyDeal not between", value1, value2, "fmoneydeal");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}